package com.solt.prism.core.wrapper;

import java.util.List;

import com.solt.prism.core.conf.Configuration;
import com.solt.prism.core.conf.news.Field;
import com.solt.prism.plugins.NewsWrapper;

public class WrapperFactory {
	public static NewsWrapper createNewsWrapper(Configuration conf, List<Field> fields) {
		XPathWrapper wrapper = new XPathWrapper();
		wrapper.setConf(conf);
		wrapper.init(fields);
		return wrapper;
	}
}
